import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {AlarmComponent} from './alarm.component';
import {AlarmSearchComponent} from './alarm-search/alarm-search.component';
import {AlarmStatisticsComponent} from './alarm-statistics/alarm-statistics.component';

const routes: Routes = [
  {
    path: '', component: AlarmComponent, children:
      [
        {path: 'search', component: AlarmSearchComponent},
        {path: 'statistics', component: AlarmStatisticsComponent},
      ]
  },

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AlarmRoutingModule {
}
